<template>
	<view style="width: 100%;height: 100%;">
		<image :src="src" v-if="src" @tap="preview" mode="aspectFill" style="width: 100%;height: 100%;display: block;"></image>
	</view>
</template>

<script>
	export default {
		name: 'preview',
		data() {
			return {
				
			};
		},
		props: {
			src : {
				default : ""
			},
			list : {
				default : function(e){
					return [] ;
				},
			}
		},
	
		
		methods: {
			preview:function(e){
				uni.previewImage({
					urls: this.list ,
					current:  this.src
				});
			},
		}
	}
</script>

<style>

</style>
